package ochart.serialization.json.oChart.elements.background
{
	import ochart.elements.background.Background;
	import ochart.serialization.json.JSON;
	import  ochart.serialization.json.oChart.JSONSerializer;
	
	public class BackgroundSerializer extends JSONSerializer
	{
		public function BackgroundSerializer()
		{
			super();
		}
		
		override public function fromJSON(json:Object):Boolean
		{
			if(!super.fromJSON(json))
			{
				return false;
			}
			
			var background:Background = target as Background;
			
			return true;
		}
		
		override public function toJSON():JSON
		{
			var json:JSON = super.toJSON();
			return json;
		}
	}
}